package main.b_StrategyModel;

/**
 * Created by newtranx_011 on 2017/9/21.
 */
public class Context {

    Strategy strategy = null;

    public Context(Integer  type){
        switch (type){
            case 1:
                this.strategy = new ConcreteStrategyA();
                break;
            case 2:
                this.strategy = new ConcreteStrategyB();
                break;
        }
    }

    //山下文接口
    public void ConcreteInterface(){
        strategy.AlgorithmInterface();
    }
}
